From: Ralf Baechle Date: Wed, 23 Nov 2005 13:49:09 +0000 (+0000) Subject: [MIPS] Use reset_page_mapcount to initialize empty_zero_page usage counter. X-Git-Tag: archive/raspbian/4.9.13-1+rpi1~10^2~48115^2~10 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=d981733aaf970e4537bb8dee9422ee775d92e5ae;p=linux-4.9.git [MIPS] Use reset_page_mapcount to initialize empty_zero_page usage counter. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index f75ab748e8cd..3a49036e0ae8 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -68,7 +68,7 @@ unsigned long setup_zero_pages(void) page = virt_to_page(empty_zero_page); while (page < virt_to_page(empty_zero_page + (PAGE_SIZE << order))) { set_bit(PG_reserved, &page->flags); - set_page_count(page, 0); + reset_page_mapcount(page); page++; }